<?php

function reequipment_adminapi_deleteshipping($args)
{
    // Get arguments from argument array
    extract($args);
    // Argument check
    if (!isset($shipping_id)) {
        $msg = xarML('Invalid Parameter Count');
        xarErrorSet(XAR_SYSTEM_EXCEPTION, 'BAD_PARAM', new SystemException($msg));
        return;
    }

    // Get datbase setup
    $dbconn =& xarDBGetConn();
    $xartable =& xarDBGetTables();
    $table = $xartable['reshipping'];

    // Delete the item
    $query = "DELETE FROM $table
            WHERE shipping_id = ?";
    $bindvars = array($shipping_id);
    $result =& $dbconn->Execute($query,$bindvars);
    if (!$result) return;
    return true;
}
?>